package ws.performancetest.api.exception;

import ws.performancetest.api.TestSuite;

/**
 * This exception is thrown whenever a Test Suite requires a database connection
 * but none is available.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class DatabaseConnectionRequiredException extends Exception {

  /**
   * Create a new exception.
   *
   * @param testSuite test suite that requires the connection.
   */
  public DatabaseConnectionRequiredException(TestSuite testSuite) {
    super("The test suite '" + testSuite.toString() + "' requires an established database connection.");
  }
}
